//
//  ZCBaseViewModel.h
//  ZCJZ
//
//  Created by sujeking on 2019/3/12.
//  Copyright © 2019年 jeking. All rights reserved.
//

#import <Foundation/Foundation.h>
#import "SKWebServiceErrorCode.h"
#import <UIKit/UIKit.h>


@interface ZCBaseViewModel : NSObject

/// 上传图片
+ (void)uploadFile2ServerWithImg:(UIImage *)img
                        fileName:(NSString *)fileName
                           owner:(UIViewController *)vc
                        complete:(void (^)(ZCErrorCode code, NSString *msg,id info))block;

/// 上传视频
+ (void)uploadFile2ServerWithVideo:(id)video
                        fileName:(NSString *)fileName
                           owner:(UIViewController *)vc
                        complete:(void (^)(ZCErrorCode code, NSString *msg,id info))block;

/// 行为统计
+ (void)collectionActionWithKey:(NSString *)KeyStr
                         action:(NSString *)action
                           data:(id)data
                       complete:(void (^)(ZCErrorCode code, NSString *msg,id info))block;

@end
